<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Snap! <%= get_current_dir %></title>
  <link rel="shortcut icon" type="image/x-icon" href="/__snap__/favicon.ico">
  <link rel="stylesheet" type="text/css" href="/__snap__/styles.css" media="screen, print" />
  <script type="text/javascript" src="/__snap__/jquery-1.3.2.min.js"></script>
</head>
<body>
  <img src='/__snap__/snap_logo.png' style="position:absolute;">
  <div align="center">
    <div id="wrapper">
      <div id="content">
        <h3>Listing <%= get_current_dir %> </h3>
        <table>
          <tr>
            <th></th>
            <th>File</th>
            <th>Last Modified</th>
            <th>Size</th>
            <th>Type</th>
          </tr>
          <% get_snap_files.each do |f| %>
          <tr>
            <td><%= f.icon %></td>
            <td><a href="<%= f.relative_to(get_root_dir) %>"><%= f.name %></a></td>
            <td><%= f.mtime %></td>
            <td><%= f.size %> bytes</a></td>
            <td><%= f.type %></td>
          </tr>
          <% end %>
        </table>
        <p>Powered by <a href="http://nstielau.github.com/snap/">Snap!</a></p>
      </div>
    </div>
  </div>
</body>
</html>